package bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.function.Function;

/**
 * Created by chen_ on 2017/5/2.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FetchParams implements Serializable{
    public enum Flag{
        simple,
        dynamic
    }
    private String url ;
    private Flag flag = Flag.simple;
    private int timeout;
    private String script;
    private Class clazz;
    private String xpath;
    private List<String> xpaths;
    private Function scriptLocator;
}